import React, { Component } from 'react';
import propTypes from 'prop-types'

class AddCounter extends Component {

  constructor(props) {
    super(props);
    this.state = { }
  }

  render() { 
    const { addCounte } = this.props;
    return ( 
      <div>
        <button onClick={() => addCounte(1)}>+1</button>
        <button onClick={() => addCounte(5)}>+5</button>
        <button onClick={() => addCounte(10)}>+10</button>
      </div>
     );
  }
}
 
AddCounter.propTypes = {
  addCount: propTypes.func
}

export default AddCounter;